<html>
<head>

<meta http-equiv="Content-Type" content="text/html;charset=utf8">
<meta name="description" content="untitle">

<title>所有产品列表</title>

<style type="text/css">
* {margin:0;padding:0;}
table td {height: 50px; padding: 0 20px; line-height: 50px; border-bottom: 1px solid #ccc;}
</style>
<script type="text/javascript" src="<?php echo $site['script_url'] ?>jquery-1.7.2.min.js"></script>
<?php foreach($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $site['script_url'] . $script; ?>"></script>
<?php } ?>
</head>

<body>

<table>
<?php foreach ($goods as $key=>$value) { ?>
	<tr>
		<td class="image"><img src="#" json='<?php echo $value->taobao_info; ?>' /></td>
		<td class="number"><?php echo $value->number; ?></td>
		<td class="search_code"><?php echo $value->search_code; ?></td>
	</tr>
<?php } ?>
</table>

</body>
<script type="text/javascript">
var $images = $('.image img');
$images.each(function(index){
	$json = eval( '(' + $(this).attr('json') + ')' );
	$(this).attr('src', $json.image).width(50);
})
</script>

</html>